from django.urls import path

from . import views

app_name = 'res'

urlpatterns = [
    path('upload_res/', views.upload_res, name='upload_res'),
    path('captcha/', views.captcha, name='captcha'),  # 生成验证码
    path('upload_file', views.upload_file, name='upload_file'),  # 上传文件
    path('detail/<int:res_id>/', views.detail, name='detail'),  # 资源详情
    path('collect', views.collect, name='collect'),  # 资源收藏
    path('download_res/<int:res_id>', views.download_res, name='download_res'),  # 资源下载
    path('collect_list/', views.collect_list, name='collect_list'),  # 收藏列表
    path('attention/', views.attention, name='attention'),  # 关注用户
    path('comment/', views.comment, name='comment'),  # 资源评论


]
